package gui.messagebox;

import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileNameExtensionFilter;

import app.AppGlobals;

public class MessageBox {

	public static void displayMessageBox(String message){
		JOptionPane.showMessageDialog(null, message);
	}
	public static String displayInputBox(String title,String message){
		return JOptionPane.showInputDialog(null, message, title, 1);
	}
	public static File[] displayImportDialog(String confirmName,String defualtDir,FileNameExtensionFilter fileFilter,boolean multiSelect){
        JFileChooser importFile = new JFileChooser();
        importFile.setCurrentDirectory(new File(defualtDir));
        importFile.setFileFilter(fileFilter);
        importFile.setMultiSelectionEnabled(multiSelect);
        importFile.showDialog(null, confirmName);
        
        return importFile.getSelectedFiles();
	}
}
